from read_json import oj

# key="test123/abc"
# path="\\test_data.json"
# msg_key="1002"
def get_key(key,path,msg_key):
    data=oj.get_json_value(key,path)
    for i in data:
        msg=i.get(msg_key)
        # pass
        if msg != None:
            return msg

# 本段代码在于尝试获取请求之后的返回值内某一个特定的值,作为判断case是否通过的标准


# print(get_key(key,path,msg_key)) 